package com.time.sky.service;

import com.time.sky.entity.Floor;
import com.time.sky.mapper.FloorMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FloorServiceImpl implements FloorService{
    @Autowired
    private FloorMapper floorMapper;
    @Override
    public List<Floor> queryFloor(Floor floor) {
        return floorMapper.queryFloor(floor);
    }

    @Override
    public int getCount(Floor floor) {
        return floorMapper.getCount(floor);
    }

    @Override
    public void addFloor(Floor floor) {
        floorMapper.addFloor(floor);
    }
}
